Avoid tons of warnings from stylecontext initialization without screen
authorMatthias Clasen <mclasen@redhat.com>
Sat, 5 Feb 2011 16:21:21 +0000 (11:21 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Feb 2011 16:21:21 +0000 (11:21 -0500)
This reverts part of commit 4dc9b29.

gtk/gtkwidget.c

index f7e5383a380a69cada7509b30881e7e476d19f9b..74d83f21ce5f5e4aa0aa2186f8a50df0d02adb31 100644 (file)
@@ -14179,7 +14179,7 @@ gtk_widget_get_style_context (GtkWidget *widget)
                         G_CALLBACK (style_context_changed), widget);
 
       gtk_style_context_set_screen (widget->priv->context,
-                                    gtk_widget_get_screen_unchecked (widget));
+                                    gtk_widget_get_screen (widget));
 
       _gtk_widget_update_path (widget);
       gtk_style_context_set_path (widget->priv->context,